package behavioral.strategy;

public class Price {

    private IDiscount discount;

    public Price(IDiscount discount) {
        this.discount = discount;
    }

    public double getPrice(double price) {
        return this.discount.getPrice(price);
    }
}
